import request from "../utils/axios";

export const getScheduleByDate = (data:any) => {
    return request.post(`/api/schedule/getScheduleByDate`,data)
}

export const delScheduleById = (data:any) => {
    return request.get(`/api/schedule/delScheduleById/${data.scheduleId}`)
}

export const addSchedule = (data:any) => {
    return request.post(`/api/schedule/addSchedule`,data)
}

export const getCascaderOptionByMovie = (params:any) => {
    return request.get(`/api/schedule/getCascaderOptionByMovie/${params.movieId}/${params.date}/${params.cityname}`)
}

export const getScheduleById = (data:any) => {
    return request.get(`/api/schedule/getScheduleById/${data.scheduleId}`)
}

export const getEntryInfoByCinemaId = (data:any) => {
    return request.get(`/api/schedule/getEntryInfoByCinemaId/${data.cinemaId}`)
}


